package com.kejy.entity;

import lombok.Data;

@Data
public class AuctionUser {
    private Integer userId; //用户编号
    private String userName;    //用户名称
    private String userPassword;    //用户密码
    private String userCardNo;  //用户身份证号
    private String userTel; //用户手机号码
    private String userAddress; //用户地址
    private String userPostNumber;  //用户邮编
    private boolean userIsAdmin;    //是否是管理员
    private String userQuestion;    //用户保存密码的问题
    private String userAnswer;      //用户保存密码的答案

    public AuctionUser() {
    }

    public AuctionUser(Integer userId, String userName, String userPassword, String userTel, String userPostNumber,
                       String userAnswer, String userQuestion, boolean userIsAdmin, String userAddress, String userCardNo) {
        this.userId = userId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.userTel = userTel;
        this.userPostNumber = userPostNumber;
        this.userAnswer = userAnswer;
        this.userQuestion = userQuestion;
        this.userIsAdmin = userIsAdmin;
        this.userAddress = userAddress;
        this.userCardNo = userCardNo;
    }


    public AuctionUser(String userName, String userPassword, String userCardNo, String userTel, String userAddress, String userPostNumber) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.userCardNo = userCardNo;
        this.userTel = userTel;
        this.userAddress = userAddress;
        this.userPostNumber = userPostNumber;
    }

    public AuctionUser(String userName, String userPassword) {
        this.userName = userName;
        this.userPassword = userPassword;
    }
}
